﻿<%@ Page Title="" Language="C#" MasterPageFile="~/View/MasterPage.Master" AutoEventWireup="true" CodeBehind="EditClient.aspx.cs" Inherits="GRC_TPE_WebApp.View.Private.Client.EditClient" %>
<asp:Content ID="Content1" ContentPlaceHolderID="title" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="content" runat="server">
    <fieldset>
        <legend>Modifier un client : </legend>
        <table>
            <tr>
                <asp:ValidationSummary ID="editClientSummary" runat="server"
                headerText="Il y a des erreurs sur la page :" />
            </tr>
            <tr>
                <td>Nom : </td>
                <td>
                    <asp:TextBox ID="editClientName" runat="server" Width="200px" />

                    <%--Validator--%>
                    <asp:RequiredFieldValidator ID="nameRequired" runat="server"
                    ControlToValidate="editClientName"
                    ErrorMessage="Le nom est requis."> *
                    </asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>Activité : </td>
                <td>
                    <asp:TextBox ID="editClientActivity" runat="server" Width="200px" />

                    <%--Validator--%>
                    <asp:RequiredFieldValidator ID="activityRequired" runat="server"
                    ControlToValidate="editClientActivity"
                    ErrorMessage="L'activité est requise."> *
                    </asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>Téléphone : </td>
                <td>
                    <asp:TextBox ID="editClientPhone" runat="server" Width="200px" />
                    <%--Validator--%>
                    <asp:RequiredFieldValidator ID="phoneRequired" runat="server"
                    ControlToValidate="editClientPhone"
                    ErrorMessage="Le numéro de téléphone est requis."> *
                    </asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>Adresse : </td>
                <td>
                    <asp:TextBox ID="editClientAdresse" runat="server" TextMode="MultiLine" Width="280px" Height="70px"/>

                    <%--Validator--%>
                    <asp:RequiredFieldValidator ID="adresseRequired" runat="server"
                    ControlToValidate="editClientAdresse"
                    ErrorMessage="L'adresse est requise."> *
                    </asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td><asp:Button ID="B_Save" runat="server" Text="Enregistrer" OnClick="B_Save_Click"/></td>
                <td><asp:Button ID="B_Cancel" runat="server" Text="Annuler" OnClick="B_Cancel_Click" CausesValidation="false"/></td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="editClientErrorMessage"  runat="server" />
                </td>
            </tr>
        </table>
    </fieldset>
</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="footer" runat="server">
</asp:Content>